﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StuMngWx.Enums;
using DX.CRC.Common.WebUtil;

namespace StuMngWx.Entities
{
    public class Student
    {
        public long ID { get; set; }
        public string Name { get; set; }
        public string Address { get; set; }
        public string Sex_Field { get; set; }

        public Sex Sex { get { return CommonUtility.Convert2Enum(Sex_Field, Sex.Unknown); } }

        public Student()
        {
            ID = 0;

            Name
            = Address
            = Sex_Field
            = string.Empty;
        }
    }
}
